/* Copyright (c) 2022, TD SYNNEX Corporation. All rights reserved */

package com.example.bootintegration.dao.test.entity;

import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.EntityListeners;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @Description
 * @Author erekx
 * @Date 2021-11-30 16:54:29
 */

@Data
@Entity
@Table( name = "stellr_billing_template" ,catalog = "test")
@EntityListeners(AuditingEntityListener.class)
public class StellrBillingTemplate implements Serializable {

	private static final long serialVersionUID =  3999362241462202118L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "oid" )
	private Integer oid;

	/**
	 * rental billing/subscription billing
	 */

   	@Column(name = "entry_datetime",insertable = false, updatable = false )
	private Date entryDatetime;

   	@Column(name = "update_id" )
	@CreatedDate
	private Integer updateId;

   	@Column(name = "update_datetime")
	@LastModifiedDate
	private Date updateDatetime;

}
